package com.kgc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/emp")
public class EmpController {
   @GetMapping("/hello")
   @ResponseBody
    public String msg(){
       System.out.println("今晚打老虎");
       System.out.println("今晚打皮皮龙");
        return "hello Git";
    }
    @GetMapping("/hello2")
    @ResponseBody
    public String msg2(){
        return "hello Git2";
    }
}
